package com.sumainfor.pc.epc.controller.master;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.PageUtils;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.epc.service.RepairEvaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Map;

/**
 * @Auther: zhlu
 * @Date: 2018/11/3 21:15
 * @Description:
 */
@RestController
@RequestMapping("/master/repaireva")
public class RepairEvaController implements Serializable{

    @Autowired
    private RepairEvaService repairEvaService;

    /**
     * 查询维修评价 已评价
     * @Author zhlu
     * @Description //TODO
     * @Date 2018/11/3 21:22
     */
   @RequestMapping(value = "/getRepairEvaList",method = RequestMethod.GET)
    public JsonResult getRepairEvaList(@RequestParam Map<String,Object>params, Pager pager){
       return repairEvaService.getRepairEvaList(params,pager);
    }
    /**
     * 查询维修评价 已评价
     * @Author zhlu
     * @Description //TODO
     * @Date 2018/11/3 21:22
     */
    @RequestMapping(value = "/getRepairEvaNoList",method = RequestMethod.GET)
    public JsonResult getRepairEvaNoList(@RequestParam Map<String,Object>params,Pager pager){
        return repairEvaService.getRepairEvaNoList(params,pager);
    }


    /**
     * 根据维修工单编号查询采购详情
     * @author zhoucong
     * @data 2019/10/23
     * @Param
     * @return
     */
    @GetMapping("/getRepIdReceive")
    public JsonResult getRepIdReceive(@RequestParam Map<String,Object> params){
        params.put("SourceId",params.get("RepId"));
        return repairEvaService.getRepIdReceive(params);
   }
}
